package no.ntnu.fp.gui;

import javax.swing.AbstractListModel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class EmployeeCalendarSelectPanel extends JPanel {
	
	private final class EmployeesListModel extends AbstractListModel {
		String[] values = new String[] { "en", "rad eller ", "mange!" };

		public int getSize() {
			return values.length;
		}

		public Object getElementAt(int index) {
			return values[index];
		}
	}

	public EmployeeCalendarSelectPanel() {
		JTextField txtSearchField = new JTextField();
		txtSearchField.setText("S\u00F8k i Ansatte");
		add(txtSearchField, "cell 0 0,growx,aligny top");
		txtSearchField.setColumns(10);

		JList list = new JList();
		add(list, "cell 0 1,grow");
		list.setModel(new EmployeesListModel());
	}
}
